
package bankservice.endpoint;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

	   @WebService
	   @SOAPBinding(style = Style.RPC)

public interface BankInterface {
	
	/**
	 * This remote method returns a message.
	 * @param  name - a String containing a name.
	 * @return a String message.
	 */
	  	   
	   @WebMethod public void createBankAccount();
	   
	   @WebMethod public BankAccountImpl  getBankAccount(int i) ;
	   
	   @WebMethod public void initializeBank() ;
	   		      
	   @WebMethod public int getNumberOfBankAccounts(); 
		
	   @WebMethod public String getBranchCode(); 
		
	   @WebMethod public void setBranchCode(String bCode);
	   
	   @WebMethod public void deposite(String accountNumber,float amount);
	   
	   @WebMethod public void withdraw(String accountNumber,float amount);
	   
	   @WebMethod public float getBalance(String accountNumber);
	   
	   @WebMethod public float transfer(String sourceAccountNumber,String destinationAccountNumber,float amount);
	   		
}
